package main.java.com.example.mainstream.database;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * 文件名：ShopAddressHelper
 * 描述：收获地址
 */
public class ShopAddressHelper extends SQLiteOpenHelper {

    public static final String CREATE_USER = "create table ShopAddress ("
            + "id integer primary key autoincrement, "
            + "user_id text, "
            + "user text, "
            + "address_id text, "
            + "mobile text, "
            + "city text, "
            + "defaultcity text, "
            + "address text)";

    public ShopAddressHelper(Context context, String name, SQLiteDatabase.CursorFactory factory,
                      int version) {
        super(context, name, factory, version);
        // TODO Auto-generated constructor stub
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        // TODO Auto-generated method stub

        db.execSQL(CREATE_USER);
    }

    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        // TODO Auto-generated method stub

    }

}
